package com.huawei.appgallery.forum.message.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import com.huawei.appgallery.forum.base.card.ForumNode;
import com.huawei.appgallery.forum.message.card.ForumLauncherMsgSwitchSettingItemCard;
import o.bvj.e;
import o.cih;

public class ForumLauncherMsgSettingItemNode extends ForumNode {
    public ForumLauncherMsgSettingItemNode(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        layoutParams.weight = 1.0f;
        cih forumLauncherMsgSwitchSettingItemCard = new ForumLauncherMsgSwitchSettingItemCard(this.ॱ);
        View view = (RelativeLayout) LayoutInflater.from(this.ॱ).inflate(e.ʽ, null);
        forumLauncherMsgSwitchSettingItemCard.ˏ(view);
        ˊ(forumLauncherMsgSwitchSettingItemCard);
        viewGroup.addView(view, layoutParams);
        return true;
    }
}
